home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Mac OS X Throbber / Source / _Prefix / PrefixCommon.h < prev   
Encoding:
Text File  |  2000-06-24  |  2.4 KB  |  75 lines

  1. // ===========================================================================
  2. //    PrefixCommon.h        ©1999 Metrowerks Inc. All rights reserved.
  3. // ===========================================================================
  4. //    This file contains settings/material common to all targets for the
  5. //    prefix file.
  6.  
  7.     // Make sure the key debug macro is defined (this is originally #defined
  8.     // in PP_Debug.h, but we #define it ourselves in the enclosing prefix
  9.     // file to use it as our "switch" macro for the debug and release builds).
  10.     
  11. #ifndef PP_Debug
  12.     #error "PP_Debug is not yet #defined"
  13. #endif
  14.  
  15.     // Set up some Mac OS related Conditional Macros...
  16. #define OLDROUTINENAMES                        0
  17. #define OLDROUTINELOCATIONS                    0
  18.  
  19.     // Set some PP macros
  20. #define    PP_StdDialogs_Option                3    // conditional
  21. #define    PP_Uses_Old_Integer_Types            0    // nope.
  22. #define    PP_MenuUtils_Option                    1    // classic
  23. #define PP_Uses_PowerPlant_Namespace        0    // 0 = No, 1 = Yes
  24. #define PP_Obsolete_AllowTargetSwitch        0    // no obsolete stuff
  25. #define PP_Suppress_Notes_20                1    // no update notes for old projects
  26.  
  27.     // For the MSL
  28. #define    __dest_os                            __mac_os
  29.  
  30.     // Set some PP Debugging macros
  31. #define    PP_Debug_Obsolete_Support            0        // No support for obsolete stuff
  32.  
  33. #if PP_Debug
  34.  
  35.         // Of course these PowerPlant macros need to be turned on
  36.     #define Debug_Throw
  37.     #define Debug_Signal
  38.     
  39.         // Ensure all the PP debugging macros are set as we want
  40.         // them to be. Non-Metrowerks supports are turned off by
  41.         // default in the project stationery.
  42.     #define    PP_MoreFiles_Support            0
  43.     #define    PP_Spotlight_Support            0
  44.     #define    PP_QC_Support                    0
  45.     #define PP_DebugNew_Support                1
  46.  
  47.         // Set DebugNew to full strength
  48.     #define DEBUG_NEW                        DEBUG_NEW_LEAKS
  49.  
  50. #else
  51.  
  52.         // Not debugging, so make sure everything is off
  53.         // (only used for final builds)
  54.     #define    PP_MoreFiles_Support            0
  55.     #define    PP_Spotlight_Support            0
  56.     #define    PP_QC_Support                    0
  57.     #define PP_DebugNew_Support                0
  58.     
  59.         // DebugNew should be off.
  60.     #define DEBUG_NEW                        DEBUG_NEW_OFF
  61. #endif
  62.  
  63. #include <MacTypes.h>
  64. #include <MixedMode.h>
  65.  
  66.     // Tho one would normally conditionalize this #include with
  67.     // a check for PP_DebugNew_Support, DebugNew.h must always be
  68.     // brought in else use of the NEW macro will generate compile
  69.     // errors in final targets. However, it must be conditionalized
  70.     // by the C++ check to avoid being pulled into C sources and
  71.     // confusing the compiler.
  72.     
  73. #ifdef __cplusplus
  74.     #include "DebugNew.h"
  75. #endif